t = int(input())
for _ in range(t):
    n = int(input())
    nums = list(map(int, input().split()))
    is_balanced = False
    for i in range(1, n):
        left_sum = sum(nums[:i])
        right_sum = sum(nums[i:])
        if left_sum == right_sum:
            is_balanced = True
            break
    if is_balanced:
        print("Yes")
    else:
        print("No")